import request from '@/utils/request'

export function listtcCourse(query) {
  return request({
    url: '/tcCourse/list',
    method: 'get',
    params: query
  })
}

export function createtcCourse(data) {
  return request({
    url: '/tcCourse/create',
    method: 'post',
    data
  })
}

export function readtcCourse(data) {
  return request({
    url: '/tcCourse/get/' + data.id,
    method: 'get'
  })
}

export function updatetcCourse(data) {
  return request({
    url: '/tcCourse/update',
    method: 'post',
    data
  })
}

export function deletetcCourse(data) {
  return request({
    url: '/tcCourse/delete/' + data.id,
    method: 'delete'
  })
}
